home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 November / CPNL0711.ISO / admin / secure / Tor - Privoxy - Vidalia.exe / Privoxy / templates / untrusted < prev   
Text File  |  2006-11-04  |  6KB  |  195 lines

  1. ##########################################################
  2. #
  3. # "Untrusted" Error Output template for Privoxy.
  4. #
  5. #
  6. # USING HTML TEMPLATES:
  7. # ---------------------
  8. #
  9. # Template files are written win plain HTML, with a few
  10. # additions:
  11. # - Lines that start with a '#' character like this one
  12. #   are ignored
  13. #
  14. # - Each item in the below list of exported symbols will
  15. #   be replaced by dynamically generated text, if they
  16. #   are enclosed in '@'-characters. E.g. The string @version@
  17. #   will be replaced by the version number of Privoxy.
  18. #
  19. # - One special application of this is to make whole blocks
  20. #   of the HTML template disappear if the condition <name>
  21. #   is not given. Simply enclose the block between the two
  22. #   strings @if-<name>start and if-<name>-end@. The strings
  23. #   should be placed in HTML comments (<!-- -->), so the
  24. #   html structure won't be messed when the magic happens.
  25. #   
  26. # USABLE SYMBOLS IN THIS TEMPLATE:
  27. # --------------------------------
  28. #
  29. #  my-ip-addr:
  30. #    The IP-address that the client used to reach this proxy
  31. #  my-hostname:
  32. #    The hostname associated with my-ip-addr
  33. #  admin-address:
  34. #    The email address of the pxoxy's administrator, as configured
  35. #    in the config file
  36. #  default-cgi:
  37. #    The URL for the "main menu" builtin CGI of this proxy
  38. #  menu:
  39. #    List of <li> elements linking to the other available CGIs
  40. #  version:
  41. #    The version number of the proxy software
  42. #  code-status:
  43. #    The development status of the proxy software: "alpha", "beta",
  44. #    or "stable".
  45. #  homepage:
  46. #    The URL of the SourceForge ijbswa project, who maintains this
  47. #    software.
  48. #
  49. #  hostport:
  50. #    The host and port part of the request that lead to this problem
  51. #  path:
  52. #    The path part of the request that lead to this problem
  53. #  referrer:
  54. #    The referrer of the request that lead to this problem
  55. #  trusted-referrers:
  56. #    An HTML-formatted list of referrers that are marked as trusted in
  57. #    the trustfile
  58. #
  59. #
  60. # CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
  61. # ------------------------------------------------------------------
  62. #
  63. #  unstable:
  64. #    This is an alpha or beta release of the proxy software
  65. #  have-adminaddr-info:
  66. #    An e-mail address for the local Privoxy adminstrator has
  67. #    been specified and is available through the "admin-address"
  68. #    symbol
  69. #  have-proxy-info:
  70. #    A URL for online documentation about this proxy has been
  71. #    specified and is available through the "proxy-info-url"
  72. #    symbol
  73. #  have-help-info:
  74. #    If either have-proxy-info is true or have-adminaddr-info is
  75. #    true, have-help-info is true.  Used to conditionally include
  76. #    a grey box for any and all help info.
  77. #  force-support:
  78. #    Privoxy has been compiled with support for forced loading
  79. #    of blocked content. In that case, the symbol "force-prefix" is
  80. #    avaiable, which translates to the FORCE_PREFIX  
  81. #  have-trust-info:
  82. #    There were URLs with info on the trust policy defined in the config
  83. #    file. In this case the list of URLs is available through the
  84. #    "trust-info" symbol.
  85. #
  86. #
  87. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html>
  88.  
  89. <head>
  90.   <title>Untrusted request (Privoxy@@my-hostname@)</title>
  91.   <meta http-equiv="Content-Style-Type" content="text/css">
  92.   <meta http-equiv="Content-Script-Type" content="text/javascript">
  93.   <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  94.   <meta name="robots" content="noindex,nofollow">
  95.   <link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
  96. </head>
  97.  
  98. <body>
  99.  
  100.   <table cellpadding="20" cellspacing="10" border="0" width="100%">
  101.     <tr>
  102.       <td class="status">
  103.         UNTRUSTED
  104.       </td>
  105.       <td class="title" style="width: 100%">
  106.  
  107. #include mod-title
  108.  
  109.       </td>
  110.     </tr>
  111.  
  112. <!-- @if-unstable-start -->
  113. # This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
  114.     <tr>
  115.       <td class="warning" colspan="2">
  116.  
  117. #include mod-unstable-warning
  118.  
  119.       </td>
  120.     </tr>
  121. <!-- if-unstable-end@ -->
  122.  
  123.     <tr>
  124.       <td class="warning" colspan="2">
  125.         <h2>Request for untrusted URL</h2>
  126.         <p>Your request for <b>@protocol@@hostport@@path@</b> was blocked,
  127.           because neither the request URL itself, nor its referrer
  128.           (<b>@referrer@</b>) were trusted.
  129.         </p>
  130. <!-- @if-force-support-start -->
  131.         <p>(You can <a href="@protocol@@hostport@@force-prefix@@path@">go there anyway</a>.)</p>
  132. <!-- if-force-support-end@ -->
  133.       </td>
  134.     </tr>
  135.  
  136.     <tr>
  137.       <td class="box" colspan="2">
  138.         <h2>The following referrers are trusted:</h2>
  139.         <ul>
  140.           @trusted-referrers@
  141.         </ul>
  142.       </td>
  143.     </tr>
  144.  
  145. <!-- @if-have-trust-info-start -->
  146.     <tr>
  147.       <td class="box" colspan="2">
  148.         <h2>More information on the trust policy:</h2>
  149.         <p>You can learn more about what this means and what you may be able to do about it by
  150.           reading the following documents:
  151.         </p>
  152.         <ol>
  153.             @trust-info@
  154.         </ol>
  155.       </td>
  156.     </tr>
  157. <!-- if-have-trust-info-end@ -->
  158.  
  159.     <tr>
  160.       <td class="box" colspan="2">
  161.         <h2>More Privoxy:</h2>
  162.         <ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
  163.       </td>
  164.     </tr>
  165.  
  166.     <tr>
  167.       <td class="info" colspan="2">
  168.  
  169. #include mod-support-and-service
  170.  
  171.       </td>
  172.     </tr>
  173.  
  174. <!-- @if-have-help-info-start -->
  175.     <tr>
  176.       <td class="info" colspan="2">
  177.  
  178. #include mod-local-help
  179.  
  180.       </td>
  181.     </tr>
  182. <!-- if-have-help-info-end@ -->
  183.         
  184.     <tr>
  185.       <td colspan="2">
  186.         <p class="small">Valid <a href="http://validator.w3.org/">HTML 4.01 Strict</a></p>
  187.       </td>
  188.     </tr>
  189.  
  190.   </table>
  191.  
  192. </body>
  193. </html>
  194.